<form action="/backend/slide_show/records" method="get" class="filter">
    <label for="type">关联类型</label>
    <select name="type">
	<option value="0">全部</option>
	<?php foreach ($types as $key => $type): ?>
    	<option value="<?php echo intval($key + 1); ?>">
		<?php echo $type; ?>
    	</option>
	<?php endforeach; ?>
    </select>
    <label for="parent">关联内容</label>
    <select name="parent"><option value="0">--</option></select>
    <input type="submit" class="submit" value="检索"/>
</form>

<ul class="button">
    <li><a href="/backend/slide_show/add" class="add">添加</a></li>
</ul>

<table class="records">
    <thead>
	<tr>
	    <th style="width:30px;"><input type="checkbox" value="0" class="select-all"/></th>
	    <th style="width:160px;"><a href="javascript:void(0);">图片</a></th>
	    <th style="width:80px;"><a href="javascript:void(0);">关联类型</a></th>
	    <th style="width:80px;"><a href="javascript:void(0);">关联内容</a></th>
	    <th>描述（中文）</th>
	    <th style="width:140px;"><a href="javascript:void(0);">创建时间</a></th>
	    <th style="width:80px;">操作</th>
	</tr>
    </thead>
    <tfoot><tr><td colspan="7"></td></tr></tfoot>
    <tbody><tr><td colspan="7"></td></tr></tbody>
</table>


<script type="text/x-jquery-tmpl" id="list-template">
    <tr>
	<td><input type="checkbox" value="${id}"/></td>
	<td><img src="/assets/upload/img/${$item.thumbnail(image_name)}" /></td>
	<td>${$item.getTypeName(type)}</td>
	<td>${parent}</td>
	<td title="${description_zh}">${$item.substr(description_zh)}</td>
	<td>${created_at}</td>
	<td class="action">
	    <a href="/backend/slide_show/edit/${id}" class="edit" title="编辑">
		<img src="/assets/img/edit.png" alt="编辑"/>
	    </a>
	    <a href="javascript:void(0);" class="delete" title="删除">
		<img src="/assets/img/delete.png" alt="删除"/>
	    </a>
	</td>
    </tr>
</script>

<script type="text/x-jquery-tmpl" id="none-template">
    <tr><td colspan="7" style="text-align: center;">没有搜索到结果。</td></tr>
</script>